package com.happymmall.dao;

import com.happymmall.entity.Shipping;

import java.sql.Connection;
import java.sql.SQLException;

public interface ShippingDao {

    //1.添加地址
    public int addShipping(Connection connection, Shipping shipping) throws SQLException;

    //2.删除地址
    public int deleteShipping(Connection connection, Integer shippingId) throws SQLException;

    //3.登录状态更新地址
    public int updateShipping(Connection connection, Shipping shipping) throws SQLException;

    //4.选中查看具体的地址
    public Shipping selectShipping(Connection connection, Integer shippingId) throws SQLException;

}
